<div class="w page-usercenter clearfix">
  <div class="user-tips">您能采购的商品以您所在地区的物流营销中心实际库存为准。</div>
  <div ng-include="'catalog/view/theme/bhz/pc/modules/includes/usernav.html'" ng-controller="UserNavCtrl" class="bhz-user-nav-wrap"></div>
  <div class="usercenter-page-wrap">
    <div class="basic-info">
      <div class="avatar" ng-click="jump('/usercenter/profile');">
        <img ng-src="{{userinfo.avatar}}" ng-if="userinfo.avatar">
        <img src="catalog/view/theme/bhz/m/images/default-avarta.png" ng-if="!userinfo.avatar">
      </div>
      <div class="info" ng-click="jump('/usercenter/profile');">
        <div class="username">{{userinfo.fullname}}</div>
        <!-- <a href="javascript:void(0)" ng-click="logout()" class="logout">退出</a> -->
      </div>
      <img src="catalog/view/theme/bhz/m/images/space_line.png" class="separate-line">
      <div class="order-status">
        <table>
          <tr>
            <td class="status-item">
              <a href="javascript:void(0)" ng-click="gotoOrders('待付款')">
                <div class="count">{{orderList['待付款'].length || 0}}</div>
                <div class="status">待付款</div>
              </a>
            </td>
            <td class="status-item">
              <a href="javascript:void(0)" ng-click="gotoOrders('待发货')">
                <div class="count">{{orderList['待发货'].length || 0}}</div>
                <div class="status">待发货</div>
              </a>
            </td>
            <td class="status-item">
              <a href="javascript:void(0)" ng-click="gotoOrders('待收货')">
                <div class="count">{{orderList['待收货'].length || 0}}</div>
                <div class="status">待收货</div>
              </a>
            </td>
            <td class="status-item">
              <a href="javascript:void(0)" ng-click="gotoOrders('退换货')">
                <div class="count">{{orderList['退换货'].length || 0}}</div>
                <div class="status">退换货</div>
              </a>
            </td>
          </tr>
        </table>
      </div>
    </div>
    <div class="menu">
      <table class="menu-table">
        <tr>
          <td>
            <a href="javascript:void(0)" ng-click="gotoOrders('全部')">
              <img class="menu-icon" src="catalog/view/theme/bhz/m/images/menu_order.png">
              <span class="menu-text">全部订单</span>
            </a>
          </td>
		  <td>
            <a href="javascript:void(0)" ng-click="gotoPeriods('全部')">
              <img class="menu-icon" src="catalog/view/theme/bhz/m/images/menu_period.png">
              <span class="menu-text">全部账期</span>
            </a>
          </td>
           <td>
            <a href="javascript:void(0)" ng-click="jump('/usercenter/profile')">
              <img class="menu-icon" src="catalog/view/theme/bhz/m/images/menu_profile.png" ng-click="jump('/usercenter/profile')">
              <span class="menu-text">我的资料</span>
            </a>
          </td>
           <td>
            <a href="javascript:void(0)" ng-click="jump('/usercenter/coupon')">
              <img class="menu-icon" src="catalog/view/theme/bhz/m/images/menu_card.png">
              <span class="menu-text">优惠券</span>
            </a>
          </td>
           <td>
            <a href="javascript:void(0)" ng-click="jump('/usercenter/wishlist')">
              <img class="menu-icon" src="catalog/view/theme/bhz/m/images/menu_fav.png">
              <span class="menu-text">我的收藏</span>
            </a>
          </td>
        </tr>
      </table>
    </div>

    <div class="user-datas">
      <ul class="data-items" style="color: #666;">
        <li class="data-item">
          <a href="javascript:void(0)">
            <i class="item-icon icon-diament"></i>
            <span class="item-content" style="color: #666;">
              <span class="item-name">我的采购总金额</span>
              <span class="item-data">{{userinfo.order_amount}}</span>
            </span>
          </a>
        </li>
        <li class="data-item">
          <a href="javascript:void(0)">
            <i class="item-icon icon-point"></i>
            <span class="item-content" style="color: #666;">
              <span class="item-name">我的积分</span>
              <span class="item-data">{{userinfo.points}}</span>
            </span>
            <i class="icon-arrow-right"></i>
          </a>
        </li>
        <li class="data-item">
          <a href="javascript:void(0)" ng-click="jump('page/point',false)">
            <i class="item-icon icon-award"></i>
            <span class="item-content no-border" style="color: #666;">
              <span class="item-name">积分说明</span>
              <span class="item-data"></span>
            </span>
            <i class="icon-arrow-right"></i>
          </a>
        </li>
      </ul>
    </div>

    <div class="user-logout">
      <span class="username">{{userinfo.fullname}}</span>
      <span class="separater">|</span>
      <a href="javascript:void(0)" ng-click="logout()">退出</a>
    </div>
  </div>
</div>
